package org.xiexiake.dao.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 标签表(Label)表实体类
 *
 * @author makejava
 * @since 2021-04-24 16:53:11
 */
@SuppressWarnings("serial")
public class Label extends Model<Label> {
    //标签id
    private Integer id;
    //标签名字
    private String name;
    //上级标签的id
    private Integer parentId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
